package com.hualu.xmlCode.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * AppVideos entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "app_videos", catalog = "transcode")
public class AppVideos {

    // Fields

    private Integer id;
    private Integer fkAppId;
    private String videoId;
    private String videoName;
    private Integer videoType;

    // Constructors

    /** default constructor */
    public AppVideos() {
    }

    /** full constructor */
    public AppVideos(Integer fkAppId, String videoId, String videoName, Integer videoType) {
        this.fkAppId = fkAppId;
        this.videoId = videoId;
        this.videoName = videoName;
        this.videoType = videoType;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "fk_app_id")
    public Integer getFkAppId() {
        return this.fkAppId;
    }

    public void setFkAppId(Integer fkAppId) {
        this.fkAppId = fkAppId;
    }

    @Column(name = "video_id", length = 16)
    public String getVideoId() {
        return this.videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    @Column(name = "video_name", length = 200)
    public String getVideoName() {
        return this.videoName;
    }

    public void setVideoName(String videoName) {
        this.videoName = videoName;
    }

    @Column(name = "video_type")
    public Integer getVideoType() {
        return this.videoType;
    }

    public void setVideoType(Integer videoType) {
        this.videoType = videoType;
    }

}